home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!genesis.demon.co.uk
- From: Lawrence Kirby <fred@genesis.demon.co.uk>
- Newsgroups: comp.lang.c
- Subject: Re: best way to make a program pause for a while
- Date: Wed, 10 Apr 96 20:19:53 GMT
- Organization: none
- Message-ID: <829167593snz@genesis.demon.co.uk>
- References: <4kevtq$knj@pirates.cs.swt.edu>
- Reply-To: fred@genesis.demon.co.uk
- X-NNTP-Posting-Host: genesis.demon.co.uk
- X-Newsreader: Demon Internet Simple News v1.27
- X-Mail2News-Path: genesis.demon.co.uk
-
- In article <4kevtq$knj@pirates.cs.swt.edu>
- mh22888@dali.math.swt.edu "Mohammed Hasan" writes:
-
- >i need to make my simple c program(to run in unix env)
- >wait for a while before it terminates.
- >what would be the best way to accomplish this?
-
- The C language doesn't provide a method of doing this short of busy-waiting
- on time(). Unix systems provide the sleep() call but for more information
- on that and alternatives see comp.unix.programmer.
-
- --
- -----------------------------------------
- Lawrence Kirby | fred@genesis.demon.co.uk
- Wilts, England | 70734.126@compuserve.com
- -----------------------------------------
-